// 引入外部less文件
@import './mixins/clear.less';

#wrap{
    // 头部开始
    #header{
        // 头部的上半部
        .headTop{
            background: #eaeaea;
            height: 30px;
            // 版心
            .headTopMain{
                margin: 0 auto;
                width: 1200px;
                height: 30px;
                line-height: 30px;
                // 左边
                .left{
                    float: left;
                    h5{
                        float: left;
                        margin-right: 10px;
                    }
                    .login{
                        float: left;
                        a{
                            &:first-child{
                                padding-right: 5px;
                                border-right: 1px solid #b3aeae;
                            }
                        }
                    }
                }
                // 右边
                .right{
                    float: right;
                    font-size: 0;
                    a{
                        border-right: 1px solid #b3aeae;
                        padding-right: 10px;
                        margin-left: 10px;
                        font-size: 12px;
                        &:last-child{
                            border-right:none;
                            padding-right: 0px;
                            
                        }
                        &:first-child{
                            margin-left: 0px;
                        }
                    }
                }
            }
        }
        // 头部的下半部
        .headBottom{
            // 版心
            .headBottomMain{
                margin: 0 auto;
                width: 1200px;
                .clearFix();
                // 左边：logo
                .logo{
                    float: left;
                    a{
                        img{
                            width: 175px;
                            height: 56px;
                            margin: 25px 45px;
                        }
                    }
                }
                //右边:搜索框
                .search{
                    float: right;
                    margin-top: 35px;
                    input{
                        float: left;
                        box-sizing: border-box;
                        width: 490px;
                        height: 32px;
                        padding: 0px 4px;
                        border: 3px solid #ea4a36;
                        color: blue;
                        // input 提示框文本设置样式
                        // input::-webkit-input-placeholder{}
                        &::-webkit-input-placeholder{
                            color: deeppink;
                        }
                        &:nth-child(2){
                            width: 68px;
                            height: 32px;
                            background: #ea4a36;
                            color: #fff;
                        }
                    }
                }
            }
        }
    }
    // 头部结束
    // 导航开始
    #navWrap{
        border-bottom: 2px solid #e1251b;
        // 版心
        .navMain{
            margin: 0 auto;
            width: 1200px;
            .clearFix();
            h3{
                float: left;
                width: 210px;
                height: 50px;
                line-height: 50px;
                font-size: 14px;
                background: #e1251b;
                color: #fff;
                font-weight: bold;
                text-align: center;
            }
            .navList{
                float: left;               
                a{
                    margin:0px 22px;
                    font-size: 16px;
                    color: #333;
                    line-height: 50px;
                }
            }
        }
    }
    // 导航结束
    // 内容区域开始
    #contentWrap{
        // 版心
        .contentMain{
            width: 1200px;
            height: 2000px;
            margin: 15px auto 0;
            // 路径部分开始
            .pathNav{
                padding: 9px 15px 9px 0;
                .clearFix();
                a{
                    float: left;
                }
                i{
                    padding: 0 5px;
                    float: left;
                }
            }
            // 路径部分结束
            // 放大镜区域开始
            .bigPicWrap{
                margin:5px 0 15px;
                .clearFix();
                // 左边
                .left{
                    float: left;
                    width: 400px;
                    // 左边上半部
                    .leftTop{
                        position: relative;
                        width: 400px;
                        height: 400px;
                        border:1px solid #DFDFDF;
                        // 小图
                        .smallImg{
                            width: 400px;
                            height: 400px;
                            position: relative;
                            img{
                                width: 400px;
                                height: 400px;
                            }
                            // 蒙版：默认没有
                            .mask{
                                position: absolute;
                                top: 0;
                                left: 0;
                                width: 200px;
                                height: 200px;
                                background: rgba(255,255,255,.5);
                                border: 1px solid #ddd;
                            }
                        }
                        // 大图：默认没有
                        .bigImgWrap{
                            position: absolute;
                            top: 0;
                            left: 420px;
                            width: 400px;
                            height: 400px;
                            border: 1px solid #ddd;
                            overflow: hidden;
                            img{
                                position: absolute;
                                top: 0;
                                left: 0;
                                width: 800px;
                                height: 800px;
                            }
                        }
                    }
                    // 左边下半部
                    .leftBottom{
                        width: 400px;
                        margin-top: 5px;
                        .clearFix();
                        a{
                            float: left;
                            width: 10px;
                            height: 54px;
                            line-height: 54px;
                            border: 1px solid #ccc;
                            background: #EBEBEB;
                            &.prev{
                                margin-right: 4px;
                            }
                            &.next{}
                        }
                        .imgWarp{
                            width: 372px;
                            height: 56px;
                            float: left;
                            overflow: hidden;
                            position: relative;
                            ul{
                                // .clearFix();
                                white-space: nowrap;
                                float: left;
                                font-size: 0;
                                position: absolute;
                                left:0;
                                transition: 0.5s;
                                li{
                                    // float: left;
                                    display: inline-block;
                                    width: 50px;
                                    height: 50px;
                                    border: 1px solid #CCC;
                                    padding: 2px;
                                    margin-right: 20px;
                                    img{
                                        width: 50px;
                                        height: 50px;
                                    }
                                }
                            }
                        }
                    }
                }
                // 右边
                .right{
                    float: right;
                    width: 700px;
                    // 上半部
                    .rightTop{
                        >h4{
                            font-size: 14px;
                            line-height: 21px;
                            margin-top: 15px;
                        }
                        >p{
                            color: #e12228;
                            margin-top: 15px;
                        }
                        .priceWrap{
                            margin-top: 10px;
                            line-height: 28px;
                            padding: 7px;
                            background: #fee9ec;
                            .title{
                                float: left;
                                margin-right: 15px;
                            }
                            .priceTop{
                                .clearFix();
                                .price{
                                    float: left;
                                    color: #cc1122;
                                    span{
                                        font-size: 16px;
                                    }
                                    em{
                                        font-size: 24px;
                                        font-weight: bold;
                                    }
                                    i{
                                        font-size: 12px;
                                    }
                                }
                                .count{
                                    float: right;
                                }
                            }
                            .priceBottom{
                                .clearFix();
                                p{
                                    float: left;
                                    width: 520px;
                                    line-height: 28px;
                                    span{
                                        &:nth-child(1){
                                            background: #c81623;
                                            padding: 3px;
                                            color: #fff;
                                        }
                                        &:nth-child(2){
                                            color: #999;
                                        }
                                    }
                                }
                            }
                        }
                        .supportAddress{
                            border-bottom: 1px solid #ededed;
                            padding-bottom: 5px;
                            .title{
                                float: left;
                                margin-right: 15px;
                            }
                            .cont{
                                float: left;
                                width: 520px;
                                color: #999;
                            }
                            .address{
                                .clearFix();
                                margin-top: 10px;
                                line-height: 28px;
                            }
                            .support{
                                .clearFix();
                                margin-top: 10px;
                                line-height: 28px;
                            }
                        }
                    }
                    // 下半部
                    .rightBottom{
                        margin-top: 10px;
                        line-height: 28px;
                        // 选择出来的区域：默认啥都没有
                        .choosed{
                            .clearFix();
                            .mark{
                                float: left;
                                height: 30px;
                                background: snow;
                                border: 1px solid #ddd;
                                padding: 0px 20px;
                                margin-right: 20px;
                                a{
                                    color: red;
                                    margin-left: 20px;
                                }
                            }
                        }
                        // 选择区域
                        .chooseWarp{
                            dl{
                                margin-top: 13px;
                                margin-bottom: 13px;
                                .clearFix();
                                dt{
                                    float: left;
                                    margin-right: 15px;
                                }
                                dd{
                                    float: left;
                                    margin-right: 5px;
                                    color: #666;
                                    line-height: 24px;
                                    padding: 2px 14px;
                                    border-top:1px solid #eee;
                                    border-left:1px solid #eee ;
                                    border-right:1px solid #bbb;
                                    border-bottom:1px solid #bbb;
                                    &:first-of-type{
                                        color: red;
                                    }
                                }
                            }
                        }
                        // 加入购物车
                        .addCart{
                            .clearFix();
                            .addCount{
                                float: left;
                                width: 55px;
                                margin-right: 15px;
                                position: relative;
                                input{
                                    width: 38px;
                                    height: 37px;
                                    border: 1px solid #ddd;
                                    color: #555;
                                }
                                a{
                                    width: 15px;
                                    height: 18px;
                                    background: #f1f1f1;
                                    color: #666;
                                    position: absolute;
                                    right: 1px;
                                    line-height: 18px;
                                    text-align: center;
                                    border: 1px solid #ddd;
                                    &.add{
                                        top:0;
                                    }
                                    &.jian{
                                        top: 19px;
                                    }
                                }
                            }
                            button{
                                float: left;
                                padding: 0 25px;
                                height: 36px;
                                font-size: 16px;
                                background: #e1251B;
                                border: none;
                                color: #fff;
                            }
                        }
                    }
                }
            }
            // 放大镜区域结束
            // 选项卡区域开始
            .tabWrap{
                width: 1200px;
                margin: 30px auto 0;
                .clearFix();
                // 左边是侧边栏
                .left{
                    float: left;
                    width: 210px;
                    border: 1px solid #ccc;
                    // 选项卡按钮区域
                    .tabBtns{
                        .clearFix();
                        h4{
                            float: left;
                            height: 40px;
                            line-height: 40px;
                            text-align: center;
                            width: 50%;
                            border-top:3px solid #fff;
                            border-bottom: 1px solid #ccc;
                            &.active{
                                border-top:3px solid #e1251b;
                                border-bottom: 1px solid #fff;
                            }
                        }
                    }
                    // 选项卡内容区域
                    .tabConts{
                        padding: 10px;
                        >div{
                            display: none;
                            .goodsList{
                                .clearFix();
                                li{
                                    float: left;
                                    width: 50%;
                                    line-height: 28px;
                                    border-bottom: 1px dashed #ededed;
                                }
                            }
                            &.active{
                                display: block;
                            }
                            .goodsList2{
                                li{
                                    margin: 5px 0 15px;
                                    border-bottom: 1px solid #ededed;
                                    img{
                                        width: 152px;
                                    }
                                    span{}
                                    p{
                                        color: #c81623;
                                        font-size: 16px;
                                    }
                                    .button{
                                        margin-top: 5px;
                                        margin-bottom: 5px;
                                        text-align: center;
                                        a{
                                            border: 1px solid #8c8c8c;
                                            padding: 2px 14px;
                                            line-height: 18px;
                                            color: #8c8c8c;
                                        }
                                    }
                                }
                            }
                        }
                    }
                }
                // 右边：选择搭配 详情区域
                .right{
                    float: right;
                    width: 980px;
                    // 选择搭配
                    .chooseSuit{
                        border: 1px solid #ddd;
                        margin-bottom: 15px;
                        .chooseTitle{
                            border-bottom: 1px solid #ddd;
                            background: #f1f1f1;
                            padding: 5px 0 5px 15px;
                            color: #333;
                        }
                        .chooseContent{
                            padding-top: 10px;
                            height: 170px;
                            .chooesLeft{
                                float: left;
                                width: 127px;
                                height: 165px;
                                position: relative;
                                img{
                                    width: 87px;
                                    margin: 0 auto;
                                }
                                p{
                                    color: #c81623;
                                    font-size: 16px;
                                    text-align: center;
                                }
                                span{
                                    position: absolute;
                                    top: 48px;
                                    right: -25px;
                                    font-size: 16px;
                                }
                            }
                            .chooesMiddle{
                                float: left;
                                width: 668px;
                                height: 165px;
                                li{
                                    float: left;
                                    width: 127px;
                                    margin-left: 20px;
                                    margin-right: 20px;
                                    img{
                                        width: 120px;
                                        height: 130px;
                                    }
                                    p{
                                        text-align: center;
                                    }
                                    >div{
                                        text-align: center;
                                        
                                    }
                                }
                            }
                            .chooesRight{
                                float: right;
                                border-left: 1px solid #ddd;
                                width: 153px;
                                height: 165px;
                                padding-left: 20px;
                                div{
                                    &:first-child{
                                        margin-top: 10px;
                                        margin-bottom: 10px;
                                    }
                                }
                                p{
                                    margin-bottom: 10px;
                                    font-weight: bold;
                                }
                                span{
                                    margin-bottom: 10px;
                                    font-size: 16px;
                                    color: #B1191A;
                                }
                                div{
                                    &.button{
                                        margin-top: 10px;
                                        button{
                                            padding: 10px 25px;
                                            font-size: 16px;
                                            color: #fff;
                                            background: #e1251b;

                                            border: none;
                                        }
                                    }
                                }
                            }
                        }
                    }
                    // 详情
                    .detailWrap{
                        // 选项卡按钮区域
                        .tabBtns{
                            background: #ededed;
                            .clearFix();
                            li{
                                float: left;
                                height: 40px;
                                line-height: 40px;
                                padding-left: 11px;
                                padding-right: 11px;
                                border: 1px solid #ddd;
                                border-right: none;
                                background: #fff;
                                &:last-child{
                                    border-right:1px solid #ddd;
                                }
                                &.active{
                                    background: red;
                                    a{
                                        color: #fff;
                                    }
                                }
                               
                            }
                        }
                        // 选项卡内容区域
                        .tabContents{
                            >div{
                                display: none;
                                padding-left: 20px;
                                ul{
                                    li{
                                        margin-top: 10px;
                                        margin-bottom: 10px;
                                    }
                                }
                                &.active{
                                    display: block;
                                }
                            }
                        }
                    }
                } 
            }
            // 选项卡区域结束



        }

    }
    // 内容区域结束
    // 右边侧边栏开始
    .rightAside{
        width: 300px;
        position: fixed;
        top: 0;  
        bottom: 0;
        background: #7a6e6e;
        transition: 0.5s;
        &.open{
            right: 0;
        }
        &.close{
            right:-294px
        }
        // 按钮区域
        .btn{
            width: 35px;
            height: 35px;
            background-color: #7a6e6e;
            position: absolute;
            top: 0;
            left: -29px;
            border-radius: 3px 0 0 3px;
            background-repeat: no-repeat;
            background-size: 35px 35px;
            &.btnClose{
                background-image: url(../images/list.png);
            }
            &.btnOpen{
                background-image: url(../images/cross.png);
            }
        }
        // 侧导航
        .list{
            position: absolute;
            top: 50%;
            transform: translateY(-50%);
            li{
                width: 35px;
                height: 35px;    
                position: relative;
                left: -29px;
                &:hover{
                    i{
                        background-color:pink;
                    }
                    p{
                        left:-62px;
                        background-color:pink;
                    }
                }
                i{
                    width: 35px;
                    height: 35px;
                    position: absolute;
                    top: 0;
                    left: 0;
                    background-color: #7a6e6e;
                    background-image: url(../images/toolbars.png);
                    background-repeat: no-repeat;
                    background-position: -87px -174px;
                    transition: 0.5s;
                }
                p{
                    width: 62px;
                    height: 35px;
                    position: absolute;
                    top: 0;
                    left: 35px;
                    background-color: #7a6e6e;
                    line-height: 35px;
                    text-align: center;
                    transition: 0.5s;
                }
            }
        }
        // 内容区域
        .content{
            width: 294px;
            background: bisque;
            position: absolute;
            top: 0;
            left: 6px;
            bottom: 0;
            z-index: 10;
        }
    }
    // 右边侧边栏结束
}